<div class="content_filtro">
    
    <?php 
        $img = ''; 
        $imgs = 'public/upload/aluno/'.$this->alu['ALU_ID'].'_tmb.*';
        foreach (glob($imgs) as $src) {
            $img = $src;
        }
        if(strlen($img) < 5){
            $img = 'public/media/images/aluno.png'; 
        }
        
    ?> 
    <div class="cnt-lst-aluno">
        <div class="content-foto"><img src="<?php echo '/'.$img; ?>" /></div>
        <div class="row"><strong><?php echo $this->alu['ALU_NOM'].' - '.$this->alu['ALU_ID']; ?></strong></div>
        <div class="row"><?php echo Datetools::invertDH_D($this->alu['MAT_DATHOR']); ?> - <?php echo $this->alu['MAT_ID'];?></div>
        <div class="row rwu"><?php echo dominio::getTurma($this->alu['CUR_ID'],0); ?></div>
    </div>
    
    <?php if($this->per_add){?>
    <div class="content-btn">
        <span>Novo</span><a href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit','id'=>'')); ?>">+</a>
    </div>
    <?php } ?>
    
</div>

<div class="content-list">
    
    <h2><?php echo $this->titulo;?></h2>
    
    <br><a href="<?php echo $this->url(array('controller' => 'boletimdesempenho', 'action' => 'index','id'=>'','alu_id'=>'')); ?>">Voltar</a>
    
    <table id="tlist">
        <thead>
            <tr>
                <th>Instituição de Ensino</th>
                <th>Prova</th>
                <th>Ano</th>
                <th>Semestre</th>
                <th class="bc">&nbsp;</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($this->result as $row) { ?>
                <tr>
                    <td><?php echo $row['FAC_NOM']; ?></td>
                    <td><?php echo $row['FAP_NOM']; ?></td>
                    <td><?php echo $row['BTD_ANO']; ?></td>
                    <td><?php echo $row['BTD_SEM']; ?></td>
                    <td class="bc">
                        <?php if($this->per_edt){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit', 'id' => $row['BTD_ID'])); ?>">Editar</a><?php }?>
                        <?php if($this->per_del && $row['BTD_STA'] == 0){?><a class="btn-pdr" href="javascript:void(0);" onclick="list_delete('<?php echo $this->controller; ?>', <?php echo $row['BTD_ID'] ?>, $(this));">Deletar</a><?php }?>
                    </td>
                </tr>
            <?php } ?>
        </tbody>
    </table>
</div>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>